import 'package:flutter/material.dart';

class DemoView extends StatelessWidget {
  const DemoView({super.key, required this.demoInput});
  final String demoInput;

  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      color: Colors.white,
      child: ListView(
        scrollDirection: Axis.vertical,
        children: <Widget>[
          Text("传递过来的值:\n$demoInput"),
          FilledButton(
              onPressed: () => {Navigator.pop(context)},
              child: const Text("返回上一步"))
        ],
      ),
    );
  }
}
